﻿/// <reference path="../Jquery/jquery-1.2.6.js" />
/// <reference path="../Core.js" />
/// <reference path="../Utility/ArrayList.js" />
/// <reference path="../Utility/Hashtable.js" />
/// <reference path="MessageManagger.js" />
/// <reference path="CurrentUserManager.js" />

IM.InstantMessageType =
    {
        /// <summary>
        /// 普通个人消息
        /// </summary>
        PersonalMessage: 2,
        /// <summary>
        /// 群消息
        /// </summary>
        GroupMessage: 3,
        /// <summary>
        /// 系统消息
        /// </summary>
        SystemMessage: 4
    }

//聊天辅助
IM.Chat = {
    //Friends: new IM.Utility.ArrayList(), //好友集合
    ChatWindows: new IM.Utility.Hashtable(), //用好友id   window做key value
    SystemMessages: new IM.Utility.ArrayList(), //系统消息
    Strangers: new IM.Utility.ArrayList(), //陌生人集合
    MessageManager: new IM.MessageManager(),
    CurrentUserManager: new IM.CurrentUserManager(),
    FriendManager: new IM.FriendManager()
};

$(function() {
    IM.Chat.CurrentUserManager.GetCurrentUserInfo();
    IM.Chat.FriendManager.StartInterval(); //定时取好友信息
    IM.Chat.MessageManager.StartInterval(); //定时取聊天信息
});
